package btree;

/**
 * 二叉树
 *
 * @author zj
 */
public class BTree {
    private Object data;
    private BTree leftChild;
    private BTree rightChild;

    public BTree(int data) {
        this.data = data;
        leftChild = null;
        rightChild = null;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public BTree getLeftChild() {
        return leftChild;
    }

    public void setLeftChild(BTree leftChild) {
        this.leftChild = leftChild;
    }

    public BTree getRightChild() {
        return rightChild;
    }

    public void setRightChild(BTree rightChild) {
        this.rightChild = rightChild;
    }

}
